import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import spring.aop.xml.Calculator;

/**
 * @author Yancy xiao
 * @create 2022-12-29 19:46
 */
public class AOPByXML {
    @Test
    public void AOPXML() {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("aop-xml.xml");
        Calculator bean = ioc.getBean(Calculator.class);
        bean.div(10, 2);
    }
}
